import Vue from 'vue'
import App from './App'
import './styles/index.scss'
import { wxPost} from './utils/request.js'
import { navigateTo} from './utils/index.js'
import store from './store'
Vue.prototype.$post = wxPost
Vue.prototype.$navigateTo = navigateTo
Vue.prototype.$store = store
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue(App)
app.$mount()
export default {
    // 这个字段走 app.json
    config: {
        // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
        pages: ['pages/about/main', '^pages/index/main', 'pages/product/main', 'pages/news/main', 'pages/shownews/main', 'pages/showproduct/main'],
        window: {
            backgroundTextStyle: 'light',
            navigationBarBackgroundColor: '#fff',
            navigationBarTextStyle: 'black',
        },
        tabBar: {
            color: '#a6a6a6',
            selectedColor: '#444444',
            list: [{
                pagePath: 'pages/index/main',
                text: "首页",
                iconPath: 'assets/home.png',
                selectedIconPath: 'assets/home_active.png'
            }, {
                pagePath: 'pages/product/main',
                text: "产品",
                iconPath: 'assets/product.png',
                selectedIconPath: 'assets/product_active.png'
            }, {
                pagePath: 'pages/news/main',
                text: "新闻",
                iconPath: 'assets/news.png',
                selectedIconPath: 'assets/news_active.png'
            }, {
                pagePath: 'pages/about/main',
                text: "简介",
                iconPath: 'assets/about.png',
                selectedIconPath: 'assets/about_active.png'
            }]
        },
        networkTimeout: {
            request: 10000,
            downloadFile: 10000
        },
    }
}